package Cn.Sarkar.IMS.DataBaseDefinations

import Cn.Sarkar.Entities.Common.Table
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.booleanColumn
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.comment
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.intColumn
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.reference

object Units : Table("Unit") {
    override var Comment: String = "مەھسۇلات بىرلىكى"
    val NameID = intColumn("NameID") reference Names.ID comment "ئىسمى"
    val DescriptionID = intColumn("DescriptionID") reference Descriptions.ID comment "چۈشەندۈرۈش"
    val Splitable = booleanColumn("Splitable") comment "پارچىلاشقا بولىدىغان بىرلىكمۇ؟"
    override val CATEGORY: Int = 9
}